package com.imooc.config.controller;

import com.imooc.config.service.ActivitiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018/12/3
 */
@RestController
public class ActivitiController {

    @Autowired
    private ActivitiService activitiService;

    @RequestMapping("/activiti/start/process")
    public Object startProcess() {
        return activitiService.startProcess();
    }

    @RequestMapping("/activiti/task/list")
    public Object taskList() {
        return activitiService.taskList();
    }
}
